﻿using System.Linq;
using Illinois.Core.Fakes;
using Illinois.Infrastructure.Data;
using NUnit.Framework;

namespace Illinois.Infrastructure.Test.Data.Test_IllinoisContext
{
  [TestFixture]
  public class Test_Get_BurnDownData_Items
  {
    [Test]
    public void Test_I_Can_Get_A_BurnDownData_Item()
    {
      var users = new FakeUserRepository();
      var user = users.Find(e => e.UserName == "mattia.richetto").First();
      var context = new IllinoisContext();
      var list = context.GetAll(user.Project.Id);
      Assert.IsTrue(list.Any());
    }
  }
}
